<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::post("user","Home\ApiController@InsertUserMessage") ;
Route::any("banners","Home\ApiController@GetBanners") ;
Route::any("pdf","Home\ApiController@GetPDF") ;
Route::any("news","Home\ApiController@GetAllNews") ;
Route::any("pdf-search","Home\ApiController@PDFSearch") ;

//微信授权 获取手机号
Route::any("wx_key","Home\VxController@GetOpenId") ;
Route::any("wx_phone","Home\VxController@getUserPhoneNumber") ;
Route::any("put","Home\VxController@PutPhoneStatus") ;
Route::any("button","Home\VxController@buttonStatus") ;
